<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- document.querySelector("input[type='password']").value  will get password -->
		<label for="password">Password:</label>
		<input type="password" id="password" name="password">
		<button type="button" onclick="togglePasswordVisibility()">Show Password</button>
		
		<script>
		function togglePasswordVisibility() {
		  var passwordInput = document.getElementById("password");
		  if (passwordInput.type === "password") {
		    passwordInput.type = "text";
		  } else {
		    passwordInput.type = "password";
		  }
		}
		</script>
	</body>
</html>